﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using SystemCenterSoa.DtoModel.Common;
using SystemCenterSoa.IRepository.SystemSettings.QualificationAdministration;
using SystemCenterSoa.PoModel.SystemSettings.QualificationAdministration;

namespace SystemCenterSoa.Service.SystemSettings.QualificationAdministration
{
    public class DictionaryTypeTableService: BaseService
    {
        private IDictionaryTypeTableRepository _dictionaryTypeTableRepository;
        public DictionaryTypeTableService(IDictionaryTypeTableRepository dictionaryTypeTableRepository)
        {
            _dictionaryTypeTableRepository = dictionaryTypeTableRepository;
        }
        public bool DictionaryTypeTableAdd(DictionaryTypeTablePo info)
        {
            return _dictionaryTypeTableRepository.DictionaryTypeTableAdd(info);
        }
        public bool DictionaryTypeTableDelete(string dttypekey)
        {
            return _dictionaryTypeTableRepository.DictionaryTypeTableDelete(dttypekey);
        }
        public DictionaryTypeTablePo DictionaryTypeTableEdit(string dttypekey)
        {
            return _dictionaryTypeTableRepository.DictionaryTypeTableEdit(dttypekey);
        }
        public bool DictionaryTypeTableUpdate(DictionaryTypeTablePo info)
        {
            return _dictionaryTypeTableRepository.DictionaryTypeTableUpdate(info);
        }
        public PagerResult<DictionaryTypeTablePo> SearchPage(SearchModel searchModel)
        {
            return _dictionaryTypeTableRepository.SearchPage(searchModel);
        }
    }
}
